//自动上传代码到服务器
var client = require("scp2");
client.scp(
  "./dist/index_index.html",
  {
    host: "119.23.104.210",
    username: "root",
    password: "Kiss1001",
    path: "/thinkjs/view/",
  },
  function (err) {
    if (err) {
      console.log(err);
    } else {
      console.log("上传成功");
    }
  }
);
